package com.hj.collegetravel.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CCommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CCommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(Integer value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(Integer value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(Integer value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(Integer value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(Integer value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<Integer> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<Integer> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(Integer value1, Integer value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(Integer value1, Integer value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCUidIsNull() {
            addCriterion("c_uid is null");
            return (Criteria) this;
        }

        public Criteria andCUidIsNotNull() {
            addCriterion("c_uid is not null");
            return (Criteria) this;
        }

        public Criteria andCUidEqualTo(Integer value) {
            addCriterion("c_uid =", value, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidNotEqualTo(Integer value) {
            addCriterion("c_uid <>", value, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidGreaterThan(Integer value) {
            addCriterion("c_uid >", value, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_uid >=", value, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidLessThan(Integer value) {
            addCriterion("c_uid <", value, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidLessThanOrEqualTo(Integer value) {
            addCriterion("c_uid <=", value, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidIn(List<Integer> values) {
            addCriterion("c_uid in", values, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidNotIn(List<Integer> values) {
            addCriterion("c_uid not in", values, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidBetween(Integer value1, Integer value2) {
            addCriterion("c_uid between", value1, value2, "cUid");
            return (Criteria) this;
        }

        public Criteria andCUidNotBetween(Integer value1, Integer value2) {
            addCriterion("c_uid not between", value1, value2, "cUid");
            return (Criteria) this;
        }

        public Criteria andCFlagIsNull() {
            addCriterion("c_flag is null");
            return (Criteria) this;
        }

        public Criteria andCFlagIsNotNull() {
            addCriterion("c_flag is not null");
            return (Criteria) this;
        }

        public Criteria andCFlagEqualTo(Integer value) {
            addCriterion("c_flag =", value, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagNotEqualTo(Integer value) {
            addCriterion("c_flag <>", value, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagGreaterThan(Integer value) {
            addCriterion("c_flag >", value, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_flag >=", value, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagLessThan(Integer value) {
            addCriterion("c_flag <", value, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagLessThanOrEqualTo(Integer value) {
            addCriterion("c_flag <=", value, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagIn(List<Integer> values) {
            addCriterion("c_flag in", values, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagNotIn(List<Integer> values) {
            addCriterion("c_flag not in", values, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagBetween(Integer value1, Integer value2) {
            addCriterion("c_flag between", value1, value2, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("c_flag not between", value1, value2, "cFlag");
            return (Criteria) this;
        }

        public Criteria andCVidIsNull() {
            addCriterion("c_vid is null");
            return (Criteria) this;
        }

        public Criteria andCVidIsNotNull() {
            addCriterion("c_vid is not null");
            return (Criteria) this;
        }

        public Criteria andCVidEqualTo(Integer value) {
            addCriterion("c_vid =", value, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidNotEqualTo(Integer value) {
            addCriterion("c_vid <>", value, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidGreaterThan(Integer value) {
            addCriterion("c_vid >", value, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_vid >=", value, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidLessThan(Integer value) {
            addCriterion("c_vid <", value, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidLessThanOrEqualTo(Integer value) {
            addCriterion("c_vid <=", value, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidIn(List<Integer> values) {
            addCriterion("c_vid in", values, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidNotIn(List<Integer> values) {
            addCriterion("c_vid not in", values, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidBetween(Integer value1, Integer value2) {
            addCriterion("c_vid between", value1, value2, "cVid");
            return (Criteria) this;
        }

        public Criteria andCVidNotBetween(Integer value1, Integer value2) {
            addCriterion("c_vid not between", value1, value2, "cVid");
            return (Criteria) this;
        }

        public Criteria andCCidIsNull() {
            addCriterion("c_cid is null");
            return (Criteria) this;
        }

        public Criteria andCCidIsNotNull() {
            addCriterion("c_cid is not null");
            return (Criteria) this;
        }

        public Criteria andCCidEqualTo(Integer value) {
            addCriterion("c_cid =", value, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidNotEqualTo(Integer value) {
            addCriterion("c_cid <>", value, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidGreaterThan(Integer value) {
            addCriterion("c_cid >", value, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_cid >=", value, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidLessThan(Integer value) {
            addCriterion("c_cid <", value, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidLessThanOrEqualTo(Integer value) {
            addCriterion("c_cid <=", value, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidIn(List<Integer> values) {
            addCriterion("c_cid in", values, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidNotIn(List<Integer> values) {
            addCriterion("c_cid not in", values, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidBetween(Integer value1, Integer value2) {
            addCriterion("c_cid between", value1, value2, "cCid");
            return (Criteria) this;
        }

        public Criteria andCCidNotBetween(Integer value1, Integer value2) {
            addCriterion("c_cid not between", value1, value2, "cCid");
            return (Criteria) this;
        }

        public Criteria andCTimeIsNull() {
            addCriterion("c_time is null");
            return (Criteria) this;
        }

        public Criteria andCTimeIsNotNull() {
            addCriterion("c_time is not null");
            return (Criteria) this;
        }

        public Criteria andCTimeEqualTo(Date value) {
            addCriterion("c_time =", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeNotEqualTo(Date value) {
            addCriterion("c_time <>", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeGreaterThan(Date value) {
            addCriterion("c_time >", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("c_time >=", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeLessThan(Date value) {
            addCriterion("c_time <", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeLessThanOrEqualTo(Date value) {
            addCriterion("c_time <=", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeIn(List<Date> values) {
            addCriterion("c_time in", values, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeNotIn(List<Date> values) {
            addCriterion("c_time not in", values, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeBetween(Date value1, Date value2) {
            addCriterion("c_time between", value1, value2, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeNotBetween(Date value1, Date value2) {
            addCriterion("c_time not between", value1, value2, "cTime");
            return (Criteria) this;
        }

        public Criteria andCReadIsNull() {
            addCriterion("c_read is null");
            return (Criteria) this;
        }

        public Criteria andCReadIsNotNull() {
            addCriterion("c_read is not null");
            return (Criteria) this;
        }

        public Criteria andCReadEqualTo(Integer value) {
            addCriterion("c_read =", value, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadNotEqualTo(Integer value) {
            addCriterion("c_read <>", value, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadGreaterThan(Integer value) {
            addCriterion("c_read >", value, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_read >=", value, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadLessThan(Integer value) {
            addCriterion("c_read <", value, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadLessThanOrEqualTo(Integer value) {
            addCriterion("c_read <=", value, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadIn(List<Integer> values) {
            addCriterion("c_read in", values, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadNotIn(List<Integer> values) {
            addCriterion("c_read not in", values, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadBetween(Integer value1, Integer value2) {
            addCriterion("c_read between", value1, value2, "cRead");
            return (Criteria) this;
        }

        public Criteria andCReadNotBetween(Integer value1, Integer value2) {
            addCriterion("c_read not between", value1, value2, "cRead");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}